<?php
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 19/12/19
 * Time: 21:23
 */

namespace app\admin\controller;


use app\common\bean\ListMap;
use app\common\controller\AdminController;
use app\common\enum\UserRechargeStatusEnum;
use app\common\manage\UserRechargeManage;

class UserRecharge extends AdminController
{
    /**
     * 充值列表
     * @throws \Exception
     */
    public function userRechargeList(){
        $listMap = new ListMap();
        $listMap->setData($this->getParams);
        $userRechargeMap = UserRechargeManage::getInstance()->getPaginatorList($listMap);
        $this->assign("userRechargeList",$userRechargeMap->getList());
        $this->assign("currentPage",$userRechargeMap->getCurrentPage());
        $this->assign("totalCount",$userRechargeMap->getTotalCount());
        $this->assign('statusSelect',UserRechargeStatusEnum::getArrayName());
        return $this->fetch();
    }
}